<template>
    <div class="help">
        <div class="tabs">
            <nut-tabs v-model="tab">
                <nut-tab-pane title="全部" pane-key="1"></nut-tab-pane>
                <nut-tab-pane title="公司动态" pane-key="2"></nut-tab-pane>
                <nut-tab-pane title="下单须知" pane-key="3"></nut-tab-pane>
                <nut-tab-pane title="操作指南" pane-key="4"></nut-tab-pane>
                <nut-tab-pane title="视频教学" pane-key="5"></nut-tab-pane>
            </nut-tabs>
        </div>
        <div class="list">
            <div class="item flex-a flex-b" @click="jumpTo('/packageA/pages/help/detail?id=0')">
                <div class="left">
                    <div class="title">客户下单须知</div>
                    <div class="content">客户下单、预约须知</div>
                    <div class="time">2323-10-26 10:50:30</div>
                </div>
                <div class="right">
                    <img src="https://cxj.szzkba.cn/upload/i/2024/06/28/160550.jpg" alt="">
                </div>
            </div>
        </div>
    </div>
</template>

<script lang="ts">
import Taro, { useRouter } from '@tarojs/taro';
import { Left } from '@nutui/icons-vue-taro';
import { reactive, toRefs, onMounted } from 'vue';
export default {
    components: {
        Left,
    },
    setup() {
        const data = reactive({
            tab: 1,
        });
        const jumpTo = (path) => {
            Taro.navigateTo({ url: path });
        }
        return {
            ...toRefs(data), jumpTo
        }
    }
};
</script>


<style lang="scss">
.help {
    .tabs {
        .nut-tab-pane {
            padding: 0;
        }
    }

    .list {
        margin-top: 20rpx;

        .item {
            padding: 20rpx;
            box-sizing: border-box;
            border-bottom: 1rpx solid #eeeeee;

            .left {
                .title {
                    font-size: 32rpx;
                    font-weight: bold;
                }

                .content {
                    color: #999;
                    height: 120rpx;
                    font-size: 26rpx;
                }

                .time {
                    color: #999;
                    font-size: 24rpx;
                }
            }

            .right {
                img {
                    width: 200rpx;
                    height: 200rpx;
                }
            }
        }
    }
}
</style>